package ${servicePackageName}.service.sys;

import com.baomidou.mybatisplus.extension.service.IService;
import ${servicePackageName}.entity.sys.SysRole;
import ${servicePackageName}.qo.other.BatchDeleteQo;
import ${servicePackageName}.qo.sys.ResoucesAuthorizationReq;
import ${servicePackageName}.qo.sys.RoleReq;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author lizihao
 * @since 2020-11-18
 */
public interface ISysRoleService extends IService<SysRole> {
	/**
	 * 保存或者更新角色
	 * @param roleReq 请求体
	 * @throws Exception 异常
	 */
	void saveOrUpdateUser(RoleReq roleReq) throws Exception;
	/**
	 * 给角色授权资源
	 * @param resoucesAuthorizationReq 请求体
	 * @throws Exception 异常
	 */
	void resoucesAuthorization(ResoucesAuthorizationReq resoucesAuthorizationReq)throws Exception;
	/**
	 * 逻辑删除角色
	 * @param roleBatchDeleteDto 请求体
	 */
	void delete(BatchDeleteQo roleBatchDeleteDto);
}
